package com.gxa.modules.app.outpatient.onlinepay.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.modules.app.outpatient.onlinepay.dto.PayDetail;
import com.gxa.modules.model.entity.fee.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName Patient
 * @Description
 * @Author Mr.YUAN
 * @Date 2022/11/12 11:24
 */
@Mapper
public interface OnlinePayMapper  {

    //返回就诊人的所有充值记录
    List<PayDetail> queryAllById(@Param("id") Integer id,@Param("startTime")String startTime,@Param("endTime")String endTime);

    //充值
    void updateMoney(@Param("totalbalance")double totalbalance,@Param("id") Integer id);

    //查询余额
    double getMondyById(@Param("id") Integer id);
    //查询支付pwd
    String getByUserId(@Param("id") Integer id);
}